package com.sy.olddriver.dao;

import com.sy.olddriver.entity.Product;
import com.sy.olddriver.vo.ProductQueryParam;

import java.util.List;

public interface ProductDao {
    List<Product> getNewestProducts();

    List<Product> getHotestProducts();

    Long getProductsCountByCondition(ProductQueryParam param);

    List<Product> getProductsByCondition(ProductQueryParam param, Long start, Long pageSize);

    Product getProductById(Integer pid);

    List<Product> getProductsByPids(List<String> pids);
}
